package cn.edu.suda.ada.database.connection.pool;

import java.sql.Connection;
import java.sql.SQLException;

import cn.edu.suda.ada.common.config.Config;
import cn.edu.suda.ada.database.exception.DatabaseException;

public interface ConnectionPool {
	public void init(Config config) throws DatabaseException;
	/**
	 * 获得一个数据库连接
	 * 
	 * @return
	 */
	public Connection getConnection() throws SQLException;
}
